/** 级联选择器模块 */
.v-cascader-group {
    position: relative;
}

.v-cascader-group * {
    line-height: 24px;
}

/** 隐藏原始elem */
.v-cascader-hide {
    display: block !important;
    visibility: hidden;
    position: absolute;
    z-index: -1;
}

/** 显示区域 */
.v-cascader-input-group {
    position: relative;
    cursor: pointer;
}

/* 输入框 */
.layui-form-danger + .v-cascader-group > .v-cascader-input-group > .v-cascader-input {
    border-color: #FF5722 !important;
}

.v-cascader-input-group > .v-cascader-input {
    cursor: pointer;
    padding-right: 25px;
}

/** 右侧箭头 */
.v-cascader-input-group > .v-icon-arrow {
    position: absolute;
    top: 50%;
    right: 7px;
    color: #c2c2c2;
    font-size: 17px;
    margin-top: -12px;
    transition: all .3s;
}

.v-cascader-group.v-cascader-open > .v-cascader-input-group > .v-icon-arrow {
    transform: rotate(180deg);
}

.v-cascader-group.show-loading > .v-cascader-input-group > .v-icon-arrow, .v-cascader-input-group.show-clear > .v-icon-arrow {
    display: none;
}

/** 异步回显默认值时加载loading */
.v-cascader-input-group > .v-icon-loading {
    position: absolute;
    top: 50%;
    right: 7px;
    color: #666;
    font-size: 17px;
    margin-top: -12px;
    display: none;
}

.v-cascader-group.show-loading > .v-cascader-input-group > .v-icon-loading {
    display: block;
}

/** 清除图标 */
.v-cascader-input-group > .v-icon-clear {
    position: absolute;
    top: 50%;
    right: 7px;
    color: #999;
    font-size: 17px;
    margin-top: -12px;
    display: none;
}

.v-cascader-input-group.show-clear > .v-icon-clear {
    display: block;
}

.v-cascader-group.show-loading > .v-cascader-input-group > .v-icon-clear {
    display: none;
}

/** 下拉列表 */
.v-cascader-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    font-size: 0;
    margin-top: 8px;
    margin-bottom: 8px;
    background: #fff;
    width: auto;
    border-radius: 2px;
    border: 1px solid #d2d2d2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
    z-index: 99999991;
    display: none;
    white-space: nowrap;
}

.v-cascader-open .v-cascader-dropdown {
    display: block;
}

.v-cascader-dropdown-list {
    padding: 5px 0;
    min-width: 120px;
    height: 180px;
    overflow-y: auto;
    vertical-align: top;
    display: inline-block;
    border-right: 1px solid #e6e6e6;
}

.v-cascader-dropdown-list:last-child {
    border-right: none;
}

.v-cascader-dropdown-list-item {
    color: #555;
    font-size: 14px;
    padding: 5px 25px 5px 15px;
    cursor: pointer;
    position: relative;
}

.v-cascader-dropdown-list-item:hover {
    background-color: #f3f3f3;
}

.v-cascader-dropdown-list-item.active {
    background-color: #f3f3f3;
    color: #5FB878;
}

.v-cascader-dropdown-list-item.is-last {
    padding-right: 15px;
}

/** 每一项的右侧箭头及加载loading */
.v-cascader-dropdown-list-item .v-icon-right, .v-cascader-dropdown-list-item .v-icon-loading {
    position: absolute;
    top: 6px;
    right: 10px;
    color: #666;
    font-size: 12px;
}

.v-cascader-dropdown-list-item.active .v-icon-right {
    color: #5FB878;
}

.v-cascader-dropdown-list-item.is-last .v-icon-right, .v-cascader-dropdown-list-item.show-loading .v-icon-right, .v-cascader-dropdown-list-item .v-icon-loading {
    display: none;
}

.v-cascader-dropdown-list-item.show-loading .v-icon-loading {
    display: block;
}

/* 禁用项 */
.v-cascader-dropdown-list-item.v-cascader-disabled {
    color: #aaa;
    cursor: not-allowed;
}

.v-cascader-dropdown-list-item.v-cascader-disabled:hover {
    background-color: transparent;
}

.v-cascader-dropdown-list-item.v-cascader-disabled .v-icon-right {
    color: #bbb;
}

/** 搜索功能 */
.v-cascader-input-group .v-cascader-input-search {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    padding-right: 25px;
    background-color: transparent;
}

.v-cascader-input-group.show-search .v-cascader-input-search {
    display: block;
}

.v-cascader-input-group.show-search .v-cascader-input {
    color: #999;
}

.v-cascader-input-group.have-value .v-cascader-input-search {
    background-color: #fff;
}

.v-cascader-input-group.have-value .v-icon-clear {
    display: none;
}

.v-cascader-input-group.have-value .v-icon-arrow {
    display: block;
}

/* 搜索面板 */
.v-cascader-search-list {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
    background: #fff;
    width: max-content;
    padding: 5px 0;
    min-width: 150px;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 2px;
    border: 1px solid #d2d2d2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
    z-index: 99999991;
    display: none;
}

.show-search-list .v-cascader-search-list {
    display: block;
}

.show-search-list .v-cascader-dropdown {
    display: none;
}

.v-cascader-search-list-item {
    color: #555;
    font-size: 14px;
    padding: 5px 15px;
    cursor: pointer;
}

.v-cascader-search-list-item:hover {
    background-color: #f3f3f3;
}

.v-cascader-search-list-item .search-keyword {
    color: #f5222d;
}

.v-cascader-search-list-empty {
    text-align: center;
    padding: 10px 15px;
}

/* 禁用项 */
.v-cascader-search-list-item.v-cascader-disabled {
    color: #aaa;
    cursor: not-allowed;
}

.v-cascader-search-list-item.v-cascader-disabled:hover {
    background-color: transparent;
}

.v-cascader-search-list-item.v-cascader-disabled .search-keyword {
    color: #F86169;
}

/** 向上显示 */
.v-cascader-group.dropdown-show-top .v-cascader-dropdown, .v-cascader-group.dropdown-show-top .v-cascader-search-list {
    top: unset;
    bottom: 100%;
}

/** 向左显示 */
.v-cascader-group.dropdown-show-left .v-cascader-dropdown, .v-cascader-group.dropdown-show-left .v-cascader-search-list {
    right: 0;
    left: unset;
}